﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace DriveBabyDrive.Models
{
    public class ReadingModel
    {
        [Required]
        [DataType(DataType.Currency)]
        [Display(Name = "Odometer")]
        public decimal Odometer { get; set; }
        [Required]
        [DataType(DataType.Currency)]
        [Display(Name = "Gas Price")]
        public decimal FuelPrice { get; set; }
        [Required]
        [DataType(DataType.Currency)]
        [Display(Name = "Gallons Filled")]
        public decimal FuelAdded { get; set; }

        [Required]
        [DataType(DataType.Currency)]
        [Display(Name = "Vehicle")]
        public int UserVehicleID { get; set; }

        //[Required]
        [DataType(DataType.Currency)]
        [Display(Name = "Lattitude")]        
        public decimal Lattitude { get; set; }
        //[Required]
        [DataType(DataType.Currency)]
        [Display(Name = "Longitude")]        
        public decimal Longitude { get; set; }

        //[Required]
        [DataType(DataType.Currency)]
        [Display(Name = "MPG")]
        public decimal FuelEfficiency { get; set; }

        //[Required]
        [DataType(DataType.Currency)]
        [Display(Name = "CPM")]
        public decimal CostPerFuelUnit { get; set; }

        [DataType(DataType.DateTime)]
        [Display(Name = "DateTime")]
        public DateTime TimeStamp { get; set; }

        [DataType(DataType.Text)]
        [Display(Name = "Vehicle")]
        public string Vehicle { get; set; }


    }

}